<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
<script type="text/javascript" src="/oa/Public/js/jquery.js"></script>
<script type="text/javascript" src="/oa/Public/js/common.js"></script>
<link rel="stylesheet" type="text/css" href="/oa/Public/css/form.css" />
<link rel="stylesheet" type="text/css" href="/oa/Public/css/global.css" />
<script type="text/javascript" src="/oa/Public/js/My97DatePicker/WdatePicker.js"></script>
</head>
<body>
<div class="search"><b>修改用户信息</b></div>
<div id="form">
  <form action="/oa/index.php/Home/User/user_save" method="post" name="form1" onsubmit="return CheckForm();">
	<table>
		<tbody>
			<tr>
				<td class="titlename">姓名：</td>
				<td><input type="text" name="name" value="<?php echo ($data_user["name"]); ?>" readonly class="readonly" /></td>
			</tr>
			<tr>
				<td class="titlename">性别：</td>
				<td> 
					<input type="radio" name="sex" value="男" <?php if($data_user['sex'] == '男'): ?>checked<?php endif; ?> >男
					<input type="radio" name="sex" value="女" <?php if($data_user['sex'] == '女'): ?>checked<?php endif; ?> >女</td>
			</tr>
			<tr>
				<td class="titlename">手机：</td>
				<td> <input type="text" name="phone" size="25" maxlength="23" value="<?php echo ($data_user["phone"]); ?>"></td>
			</tr>
			<tr>
				<td class="titlename">电子邮件：</td>
				<td> <input type="text" name="email" size="25" maxlength="50" value="<?php echo ($data_user["email"]); ?>"></td>
			</tr>
			<tr>
				<td class="titlename">QQ号码：</td>
				<td> <input type="text" name="qq" size="25" maxlength="25" value="<?php echo ($data_user["qq"]); ?>"></td>
			</tr>
		    <tr>
		      <td class="titlename"> MSN：</td>
		      <td>
		        <input type="text" name="msn" size="25" maxlength="50" value="<?php echo ($data_user["msn"]); ?>">
		      </td>
		    </tr>
		    <tr>
		      <td class="titlename">生日：</td>
		      <td>
				<input type="text" name="birthday" size="25" maxlength="10" value="<?php echo ($data_user["birthday"]); ?>" onClick="WdatePicker()">
		      </td>
		    </tr>
		    
		    <tr>
		      <td class="titlename"> 住址：</td>
		      <td>
		        <input type="text" name="address" size="40" maxlength="100" value="<?php echo ($data_user["address"]); ?>">
		      </td>
		    </tr>
		    <tr>
		      <td class="titlename"> 家庭住址：</td>
		      <td>
		        <input type="text" name="home_add" size="40" maxlength="100" value="<?php echo ($data_user["home_add"]); ?>">
		      </td>
		    </tr>
		
		    <tr>
		      <td class="titlename"> 家庭邮编：</td>
		      <td>
		        <input type="text" name="home_post" size="25" maxlength="25" value="<?php echo ($data_user["home_post"]); ?>">
		      </td>
		    </tr>
		
		    <tr>
		      <td class="titlename"> 家庭电话：</td>
		      <td>
		        <input type="text" name="home_tel" size="25" maxlength="25" value="<?php echo ($data_user["home_tel"]); ?>">
		      </td>
		    </tr>
		    <tr>
		      <td class="titlename"> </td>
		      <td>
		        <input type="submit" name="submit" class="submit" value="保存">
		      </td>
		    </tr>
		</tbody>
	</table>
  </form>
</div>
</body>
<script type="text/javascript">
	
	function CheckForm(){
		if( $("input[name='email']").val() == "" ){ alert("邮件不能为空！");return false; }
	}
</script>
</html>